package com.liu.shop.feign;

import com.liu.shop.common.vo.AddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "shop-address",path = "address")
public interface AddressService {

    @GetMapping("/getAddressListByUid/{uid}")
    public List<AddressVo> getAddressListByUid(@PathVariable Integer uid);

    @RequestMapping("/info/{id}")
    AddressVo getAddressVoById(@PathVariable("id") Integer aid);

}
